package com.example.baiduweishi.fragments;


import android.widget.Button;

import com.example.baiduweishi.R;
import com.example.baiduweishi.activities.OneKeySOSActivity;
import com.example.baiduweishi.fragments.base.BaseFragmentbase;

import butterknife.BindView;
import butterknife.OnClick;
import butterknife.Unbinder;

public class FirstFraqment extends BaseFragmentbase {

    @BindView(R.id.btn_sos)
    Button btnSos;
    Unbinder unbinder;

    @Override
    public int getXML() {
        return R.layout.first_fragment;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initDate() {

    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick(R.id.btn_sos)
    public void onViewClicked() {
        if (getActivity() instanceof OneKeySOSActivity){
            ((OneKeySOSActivity) getActivity()).toSecondFragment();
        }
    }
}
